package com.guigu.guliproduct.feign;

import com.guigu.gulicommon.entity.pojo.res.Res;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 第三方服务
 *
 * @author 陈俊杰
 */
@FeignClient(name = "gateway-server", path = "/api/third", contextId = "ThirdPartServer")
public interface ThirdPartServer {
    /**
     * 获取OSS凭证
     *
     * @return oss凭证
     */
    @GetMapping("/oss/credentials")
    Res<String> getOssCredentials();
}
